import  http from '@/utils/http';
/* 用户登录 */
export async function login(body) {
  return http.post('/cloud/doLoginJson',body)
}
/* 查询当前登录的用户信息 */
export async function queryCurrent(params) {
  return http.post('/cloud/user/getUser',params);
}

export async function sysgetmenusByUserId(params) {
  return http.getTokenData('/cloud/new/sys/getmenusByUserId',params);
}

export async function postWhthGetUser(params) {
  return http.post('/cloud/new/sys/getUser',params);
}


export async function getVerifyCode(params) {
  return http.getCode( '/cloud/verifyCode?_='+ Math.random(),params);
}



